'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	const collection = db.collection('bills-list')
	const {
		_id,
		owner,
		count,
		type,
		labels,
		comment,
		payBy,
		connectBudget,
		date,
	} = event
	const res = await collection.where({
		_id: _id
	}).update({
		owner,
		count,
		type,
		labels,
		comment,
		payBy,
		connectBudget,
		date,
	})
	return res
};
